"use strict";
// Class definition
var rectifyQueryHandle = function () {

    var eventHandler = function () {
        // $(document).on('click', '.toggle-block > .k-section__title', toggleSectionForm);
    };

    /**
     * 点击标题显示隐藏内容块
     */
    var toggleSectionForm = function () {
        $(this).next().slideToggle();
        if ($(this).find('.fa').hasClass('fa-caret-down')) {
            $(this).find('.fa').addClass('fa-caret-up').removeClass('fa-caret-down');
        } else {
            $(this).find('.fa').addClass('fa-caret-down').removeClass('fa-caret-up');
        }
    };

    return {
        init: function () {
            eventHandler();
        }
    };
}();

// Class initialization on page load
jQuery(document).ready(function () {
    rectifyQueryHandle.init();
});